export const getCurretSelectItem = (list, currValue, key) => {
  let itemSelected = null;
  for (let index = 0; index < list.length; index++) {
    const element = list[index];
    if (element[key] == currValue) {
      itemSelected = element;
    }
  }
  return itemSelected;
};